/* Base64编码的SVG图标，表示一个简化的空气质检仪图标 */
const svgStr = `
<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
  <defs>
    <linearGradient id="gradient" x1="0%" y1="0%" x2="100%" y2="100%">
      <stop offset="0%" stop-color="#43cea2" />
      <stop offset="100%" stop-color="#185a9d" />
    </linearGradient>
  </defs>
  <circle cx="100" cy="100" r="90" stroke="#fff" stroke-width="4" fill="url(#gradient)" />
  <path d="M60,70 C60,70 80,50 100,50 C120,50 140,70 140,70" stroke="#fff" stroke-width="6" fill="none" stroke-linecap="round" />
  <path d="M60,100 C60,100 80,80 100,80 C120,80 140,100 140,100" stroke="#fff" stroke-width="6" fill="none" stroke-linecap="round" />
  <path d="M60,130 C60,130 80,110 100,110 C120,110 140,130 140,130" stroke="#fff" stroke-width="6" fill="none" stroke-linecap="round" />
  <path d="M85,150 L115,150" stroke="#fff" stroke-width="6" stroke-linecap="round" />
</svg>
`;

// 将SVG转换为Base64编码的数据URL
const logoDataUrl = `data:image/svg+xml;base64,${btoa(svgStr)}`;

// 创建图像元素
const img = document.createElement('img');
img.src = logoDataUrl;
img.width = 200;
img.height = 200;

// 将图像添加到页面
document.body.appendChild(img);
